 | |  | | | General Discussion General use discussion forum for PhotoPost products. |
April 6th, 2009, 11:27 AM
|
#1 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
| Some content in Announcement box for guests only?
I want to show the accouncement box, but I also want to show some of the things to registered users, and some to the guests to the site.
What can I do to the php in my announcement box to only show something IF the user is NOT logged in?
|
| |
April 6th, 2009, 12:23 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
make the contents of the announcements box say a php file like so but remember there is a size limit. Code: Content visible to verified customers only.
|
| |
April 6th, 2009, 04:38 PM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
|
This doesn't seem to work. It still shows with the echo and print commands on the screen.i.e. 0 ) { echo << and PPPRINT; } else { echo <<
<span class="TabbedPanelsContent">
<?
if ( $User['userid'] > 0 )
{
echo <<<PPPRINT
PPPRINT;
}
else
{
echo <<<PPPRINT Quote:
<table width="93%">
<tr>
<td width="50%"><p class="style6">Uploading to skidpics.com is really simple with this plugin app! Click on <strong>Browse</strong> to select files or use drag'n'drop from the explorer, then click on <strong>Upload</strong> to send the pictures to the server. From there you need to processthe images by following the link at the bottom of the page. <strong>(this only works if you are NOT LOGGED IN!). </strong></p>
<p class="style6">Although this uploader is quit fast, <strong>registered user have access to a more robust uploader</strong>, with more options. <a href="http://skidpics4images/skidpics.com/forum/" target="_blank">Register for free</a> and gain access to lots more options...</p>
<p class="style6"><strong>1. Browse and select the photos you want to upload.</strong></p>
<p class="style6"><strong>2. Once Added, click on Upload to start uploading your photos.</strong></p>
<p class="style6"><span class="style4">3. Once Uploads are 100% Done, <em><a href="http://skidpics4images.skidpics.com/photopost/bulkupload.php?ppaction=addphotos&do=preview&donotdelete=&photopath=0&upuser=¬ify=&rating=yes&comments=yes&defcat=501&deftitle=&defdesc=&defdesc=&keywords=&numprocess=10&processall=no&dthumbs=yes&mature=no">Click here</a> to process the photos</em>. Your photos <em>WILL NOT BE ADDED</em> unless you process the photos!</span><br>
</p></td>
<td width="50%"><object id="FlashFilesUpload" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="450" height="350" classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" viewastext>
<!-- Replace symbols " with the " at all parameters values and
symbols "&" with the "%26" at URL values or & at other values!
The same parameters values should be set for EMBED object below. -->
<!-- Processing Script Start - Be sure the change the upload directory in this script -->
<param name="FlashVars" value"uploadUrl=powuploadfiles.php" />
<!-- Processing Script End - Be sure the change the upload directory in this script -->
<param name="BGColor" value="#F8F6E6" />
<param name="Movie" value="ElementITMultiPowUpload1.7.swf" />
<param name="Src" value="ElementITMultiPowUpload1.7.swf" />
<param name="WMode" value="Window" />
<param name="Play" value="-1" />
<param name="Loop" value="-1" />
<param name="Quality" value="High" />
<param name="SAlign" value="" />
<param name="Menu" value="-1" />
<param name="Base" value="" />
<param name="AllowScriptAccess" value="always" />
<param name="Scale" value="ShowAll" />
<param name="DeviceFont" value="0" />
<param name="EmbedMovie" value="0" />
<param name="SWRemote" value="" />
<param name="MovieData" value="" />
<param name="SeamlessTabbing" value="1" />
<param name="Profile" value="0" />
<param name="ProfileAddress" value="" />
<param name="ProfilePort" value="0" />
<!-- Embed for Netscape,Mozilla/FireFox browsers support. Flashvars parameters are the same.-->
<!-- Replace symbols " with the " at all parameters values and
symbols "&" with the "%26" at URL values or & at other values!
at the end of line 66, flashvars, the &redirectUploadUrl= is the value you want that will redirect the script once the uploads
are completed - change it or delete that part out -->
<!-- Use &redirectUploadUrl= on line 72 to forward to a page: uploadUrl=powuploadfilestest.php&redirectUploadUrl=http://skidpics.com/uploadphoto.php -->
<embed bgcolor="#F8F6E6" id="EmbedFlashFilesUpload" src="ElementITMultiPowUpload1.7.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="410" height="300" flashvars="uploadUrl=powuploadfiles.php"> </embed>
</object></td>
</tr>
<tr>
<td colspan="2"><hr />
<p style="text-align: center;">Having problems with this upload? <a href="http://skidpics4images.skidpics.com/photopost/uploadphoto.php">Use our default one.</a></p>
<p style="text-align: center;"> </p></td>
</tr>
</table>
| PPPRINT;
}
?>
</span>
|
| |
April 6th, 2009, 05:26 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
<span class="TabbedPanelsContent">
???
There is more here than your stating but anyway try placing PPPRINT; before the if statement and at the end of the code I gave after the closing bracket on a new line place echo <<<PPPRINT
|
| |
April 6th, 2009, 07:55 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
|
using a spry menu bar inside the announcement box - like a tabbed menu
|
| |
April 6th, 2009, 08:42 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
well whatever you want to do is fine but you must echo and print your way in and out between html and php. So if you do as I stated should work fine but then again maybe not. Maybe you would have to actually eval the contents to tell the program there is php code there. You might want to further make it easier and just edit the announcement template directly with any code.
|
| |
April 7th, 2009, 05:27 AM
|
#7 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
|
hardcoding it works perfect - thanks! Batch uploader for guest live on the site now.. disappears when loggen in..
|
| |
April 7th, 2009, 07:05 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
Have a good one.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Announcement box | xowi | Photopost Pro How Do I...? | 10 | July 9th, 2008 10:11 AM | | announcement box | Knight Rider | Photopost Pro How Do I...? | 2 | December 13th, 2007 09:12 AM | | Announcement Box | donna | Photopost Pro How Do I...? | 5 | November 8th, 2007 09:36 AM | | Announcement Box? | CGMathis | ReviewPost How do I...? | 9 | January 11th, 2007 12:09 PM | | Announcement box help | rmnapa | Classifieds How do I...? | 2 | June 5th, 2006 11:52 AM | All times are GMT -5. The time now is 03:38 PM. | |