PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > General Forums > General Discussion

General Discussion General use discussion forum for PhotoPost products.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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?
skidpics is offline   Reply With Quote
Old April 6th, 2009, 12:23 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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=&notify=&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="clsid27CDB6E-AE6D-11cf-96B8-444553540000" viewastext>
<!-- Replace symbols " with the &quot; at all parameters values and
symbols "&" with the "%26" at URL values or &amp; 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 &quot; at all parameters values and
symbols "&" with the "%26" at URL values or &amp; 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;">&nbsp;</p></td>
</tr>
</table>
PPPRINT;
}
?>
</span>
skidpics is offline   Reply With Quote
Old April 6th, 2009, 05:26 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
skidpics is offline   Reply With Quote
Old April 6th, 2009, 08:42 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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..
skidpics is offline   Reply With Quote
Old April 7th, 2009, 07:05 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
Have a good one.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0