![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
Quick Code Help Please?
I have a problem with Arylia gallery builder where relative URL's for the banners on gallery pages do not display on some browsers.
As a quick fix for future gallery builds I want to mod the code to do away with relative URL and put in the absolute instead. I think I am looking at the correct point, so where can I include http://www.domain.com instead, what is the correct syntax? Code:
while($startPos = strpos($page, "__HTMLBANNER__")) { if(isset($banners[$position])) { switch($bannerTypes[$position]) { case "text": $page = substr_replace($page, '<a'.$sponsorBlank.' href="'.$linkCodes[$position].'"><? include $_SERVER["DOCUMENT_ROOT"]."'.$banners[$position].'" ?></a>', $startPos, 14); break; case "html": $page = substr_replace($page, '<? include $_SERVER["DOCUMENT_ROOT"]."'.$banners[$position].'" ?>', $startPos, 14); break; default: $page = substr_replace($page, '<a'.$sponsorBlank.' href="'.$linkCodes[$position].'"><img border="0" src="'.$banners[$position].'"></a>', $startPos, 14); break; } } else { $page = substr_replace($page, '', $startPos, 14); } $position ++; } |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Two fresh affiliate progs
Industry Role:
Join Date: Nov 2004
Location: Inside teen pussy
Posts: 29,602
|
I am just guessing, it looks like you would put it here: ["DOCUMENT_ROOT"]
But here is a bump for you if anyone knows.
__________________
[email protected] Skype: 17026955414 Vacares Web Hosting - Protect Your Ass with Included Daily Backups |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,067
|
Where it says:
<img border="0" src="'.$banners[$position].'"> Change to: <img border="0" src="http://yourdomain.com' . $banners[$position].'"> If that does not find them then view the url to see if you need a slash (http://yourdomain.com/) .
__________________
All cookies cleared! |
![]() |
![]() ![]() ![]() ![]() ![]() |