News:

Join the Facebook Fan Page.

Main Menu

ezPortal

Started by SMFHacks.com Team, November 02, 2008, 10:10:03 AM

Previous topic - Next topic

[SiNaN]

You have to use those codes in a PHP block. Just change 'url_to_banner_image_xx with URL to the banner image and url_to_site_xx with the URL to the web site.
Former SMF Core Developer | My Mods | SimplePortal

Magicjax

Thanks again.

What the heck is a PHP block and where do I put it?

What I think this means is I go to admin/ezblock manager and add the code you gave me there. Is that right?

Believe me, I'm not as stupid as I seem here. But assume I know nothing about PHP because I don't. I do understand how to alter that code for my images and links. But I have no idea what a "PHP block" is.

Thanks again

[SiNaN]

Ummm, I believe there is a PHP code block or something similar that parses PHP. I'm sure you will see it if you read each block type title.

An example of how to use it:

$banners = array(
array('http://www.simplemachines.org/community/Themes/smsite/images/background_logo.jpg', 'http://www.simplemachines.org'),
array('http://somelink.to/a/site/image.gif', 'http://anexample.site'),
array('http://wehavealink.here/and/an/image.png', 'http://this.is/the/url.php'),
);

$rand = mt_rand(0, count($banners) - 1);
echo '<a href="', $banners[$rand][1], '" target="_blank"><img src="', $banners[$rand][0], '" alt="" /></a>';
Former SMF Core Developer | My Mods | SimplePortal

Magicjax

Ahhhh. Now I do feel stupid. I didn't see the "PHP Block" choice there. It doesn't show up when you Edit a block. Only when you create one.

Thanks so much SiNaN. It's working great now.


[SiNaN]

You're welcome. Glad that you could sort out the issue.
Former SMF Core Developer | My Mods | SimplePortal

Magicjax

Is it possible to post in image in the Shoutbox ezblock. Just me (The admin)?


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Fat_Man

If i only want the portal blocks on the main page of the forum ie.. the index.php page..
What do i do?
I can't seem to get on that page only.

vbgamer45

Do you want a main portal page or do you want them to only show on the board index?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Fat_Man

Quote from: vbgamer45 on June 05, 2009, 11:28:14 AM
Do you want a main portal page or do you want them to only show on the board index?

Only on the Board Index for the moment VbGamer45.

I'm still tinkering with it at the moment.

Fat_Man

I still can't seem to get this to work only on the board index.

vbgamer45

Yeah I think that is something I need to fix I have it working on action=forum but not just the board index
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Chas Large

Hi vbGamer, thanks for ezPortal, have been experimenting with it on my test forum prior to installing on the live site. It's great and works well. Am using 1.1.9 and there were no install issues.

I have set up some Left and Centre blocks and made a web page to show in the webpages block.

My question is, can a webpage be set as the default to show for the Portal HOME page? So far it just shows as a link in the centre block. See below.



It would be nice to have the page open as the default or when the home page is clicked in the menu.

I dd a quick scan through this topic and could not find it mentioned elsewhere, sorry if I did miss it.

Cheers

Chas
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

fwgmc

Quote from: indestopable on February 22, 2009, 09:40:10 PM
Quote from: jossanaijr on February 22, 2009, 05:11:37 PM
Hi,
just installed it and have this warning:
Warning your ezcache folder is not writable! For best performance we suggest having the cache folder writable.

but cannot find where to change it.

Also have this error when in Modules:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/mysite/public_html/Sources/Class-Package.php on line 75

Is this because of the permission error or another?

Your ezcache folder is in your Ezportal main directory. It can be CHMOD'd to '755' permissions.

I did a search on this before asking and this was the best I come up with. Now, I spent about 45 minutes on the phone with my hosting service to figure out why 1) I was being denied permission to change the ezcache folder to writable as it stated in my warning, and 2) what the purpose of this file/folder was for. They helped me to change my file permissions via the file manager center since my FTP wasn't allowing me to do so, I was getting some kind of 500 CHMOD error saying command could not be understood. Once I changed it, I was still seeing that red warning. I tried clearing my files/cookies, doing a HARD refresh right down to rebooting and doing a system quickie clean up, nothing was working to change this even though I've changed that folders permissions. So I asked if it was because the ezcache folder was a sub directory of the ezportal folder and if I needed to change the permissions on the ezportal folder too. My hosting company said that was not advised as they weren't sure how vulnerable this would make me to hackers and wrong-doers looking to experiment on my site. I heeded that warning. Now I want to know what the folder is for and why I need it to be writable. I'm slightly ignorant to this, so explain to me as well as you can, if you do not mind (analogies work really great for me to grasp a concept). It would appear as though the portal is functioning, but I am not sure if I am neglecting some important kind of feature by not fully troubleshooting this problem I am having or not. I appreciate any help on this matter I can get. Thanks!   :)

vbgamer45

The ezcache folder is not used for too much right now and is not needed for the operation for ezportal
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

fwgmc

Quote from: vbgamer45 on June 09, 2009, 10:14:46 PM
The ezcache folder is not used for too much right now and is not needed for the operation for ezportal

Thanks so much. I really love this modification. It's allowed me to do a great deal more than I thought possible. :) Thank you for your hard work and quick reply.

Fat_Man

Quote from: vbgamer45 on June 07, 2009, 08:49:06 PM
Yeah I think that is something I need to fix I have it working on action=forum but not just the board index

Cool - I couldn't friggin work out that if I only wanted the main board index to have the portal features.  Lol.
I look forward to an update Vbgamer - its great the way it is, its just i want to limit to just the main index.

qtime

About the attached pictures: I like to have the code to display the thumbnails in stead of the full pictures size. Who can help me?
something like this
if ($attachment['thumbnail']['has_thumb'])...

Magicjax

Would anyone know a script that will accomplish what this script does that will work in an ezblock?

The script displays a set of images and when the page is reloaded the order of the images change randomly. If you look at the block on the right side of my forum you'll see what I'm trying to do. I want those ad images to show up in random order.

The script I linked to above won't work (As far as I know) because you have to add a part of the script to the head section of a page. There is no "head" section on the ezblock to put that is there?

siNaN. Thank you for the script you gave me that changed the image on reload. Would you know a similar one that serves this purpose as well?

Thanks

Magicjax

In the Ezportal settings there's a check box that says, "Enable Portal Homepage" and under it there's a text box titled "Custom Homepage Title".

I'm wondering what this is about. Does that mean that it can be my index page? In other words mydomain.com can take them to this ezportal page rather then mydmain.com/index.php?

Thanks.

Ron

Advertisement: