Forums / WEB Development
wapdesire v2 shoutbox
Started on the old forum in November 2009 · view the original in the archive · old links redirect here
22 replies · 1,265 views · started 17 years ago · 1 min read
TL;DR · summary of 22 replies
- The correct approach to get the shoutbox.gif image on the main menu is to change $shoutbox to just shoutbox in the code. - For changing the site age limit, it's necessary to modify login.php by adjusting the condition for age verification. - To resolve the inbox.gif not showing issue, ensure that the correct relative path is used and check if there are any errors in the main script related to smilies usage. - The error in forums viewtopic.php seems to be due to a problem with links containing smilies; deleting them or fixing the core script functions may solve this.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Sort replies:
Oldest
Top voted
Newest
KI
Kirsty
Developer · 59 posts
17 years ago
#1
does anyone know what i need to get a shoutbox.gif image on the main menu of my site? i tried to edit the first banner from $main.="<img src="./phpThumb/phpThumb.php?src=../images/$banner" alt="-------"/>
to
$main.="<img src="./phpThumb/phpThumb.php?src=../images/$shoutbox" alt="shoutbox.gif"/>
and tried <img src="./phpThumb/phpThumb.php?src=../images/$shoutbox" alt="shoutbox.gif"/>
im just not having any luck
CR
crazybrumi
Super moderator Principal · 1,064 posts
17 years ago
#2
have u put the filename in $shoutbox
KI
Kirsty
Developer · 59 posts
17 years ago
#3
what in the folder shoutbox?
KI
Kirsty
Developer · 59 posts
17 years ago
#4
or do you mean put in main.php
$main.="<img src="./phpThumb/phpThumb.php?src=../images/$shoutbox.gif" alt="shoutbox"/>
tried that
CR
crazybrumi
Super moderator Principal · 1,064 posts
17 years ago
#5
change $shoutbox.gif to just shoutbox.gif
PA
use a code like this in your index.all you need do is to replace the welcome back with the image link.example
echo "
welcome</br> back $nick
";
replace it with:
echo "
<img src="../images/welcome1.gif" alt="welcome"/></br> back $nick
";
depending on the name and location of the image in the your script.
KI
Kirsty
Developer · 59 posts
17 years ago
#7
thanks adnan that worked so simple
KI
Kirsty
Developer · 59 posts
17 years ago
#8
does anyone know how to change the site age limit I've been told by a few people that they had to put fake d.o.b to get on as the restriction age is set to 18 but i want the site to be for all ages,
also how to add inbox.gif image in inbox.php Ive tried like above instead of shoutbox.gif tried inbox.gif and uploaded the image as inbox.gif but when i go to inbox on the site it just says inbox.gif but dont show the pic!
i tried to put
$title.="<img src="./phpThumb/phpThumb.php?src=../images/inbox.gif" alt="inbox.gif"/>
Inbox
that hasnt worked n tried
<img src="./phpThumb/phpThumb.php?src=../images/inbox.gif" alt="inbox.gif"/>
but nothing
CR
crazybrumi
Super moderator Principal · 1,064 posts
17 years ago
#9
go into login.php and change it there.
this is what i done to allow people who are 16+ to login
<b>Date Of Birth:</b><br/><select name=\"day\">
<option value=\"01\"$day1>1</option>
<option value=\"02\"$day2>2</option>
<option value=\"03\"$day3>3</option>
<option value=\"04\"$day4>4</option>
<option value=\"05\"$day5>5</option>
<option value=\"06\"$day6>6</option>
<option value=\"07\"$day7>7</option>
<option value=\"08\"$day8>8</option>
<option value=\"09\"$day9>9</option>
<option value=\"10\"$day10>10</option>
<option value=\"11\"$day11>11</option>
<option value=\"12\"$day12>12</option>
<option value=\"13\"$day13>13</option>
<option value=\"14\"$day14>14</option>
<option value=\"15\"$day15>15</option>
<option value=\"16\"$day16>16</option>
<option value=\"17\"$day17>17</option>
<option value=\"18\"$day18>18</option>
<option value=\"19\"$day19>19</option>
<option value=\"20\"$day20>20</option>
<option value=\"21\"$day21>21</option>
<option value=\"22\"$day22>22</option>
<option value=\"23\"$day23>23</option>
<option value=\"24\"$day24>24</option>
<option value=\"25\"$day25>25</option>
<option value=\"26\"$day26>26</option>
<option value=\"27\"$day27>27</option>
<option value=\"28\"$day28>28</option>
<option value=\"29\"$day29>29</option>
<option value=\"30\"$day30>30</option>
<option value=\"31\"$day31>31</option>
</select>
<select name=\"month\">
<option value=\"01\"$month1>Jan</option>
<option value=\"02\"$month2>Feb</option>
<option value=\"03\"$month3>Mar</option>
<option value=\"04\"$month4>Apr</option>
<option value=\"05\"$month5>May</option>
<option value=\"06\"$month6>Jun</option>
<option value=\"07\"$month7>Jul</option>
<option value=\"08\"$month8>Aug</option>
<option value=\"09\"$month9>Sep</option>
<option value=\"10\"$month10>Oct</option>
<option value=\"11\"$month11>Nov</option>
<option value=\"12\"$month12>Dec</option>
</select>
<select name=\"year\">
<option value=\"1993\"$year45>1993</option>
<option value=\"1992\"$year44>1992</option>
<option value=\"1991\"$year2>1991</option>
<option value=\"1990\"$year3>1990</option>
<option value=\"1989\"$year4>1989</option>
<option value=\"1988\"$year5>1988</option>
<option value=\"1987\"$year6>1987</option>
<option value=\"1986\"$year7>1986</option>
<option value=\"1985\"$year8>1985</option>
<option value=\"1984\"$year9>1984</option>
<option value=\"1983\"$year10>1983</option>
<option value=\"1982\"$year11>1982</option>
<option value=\"1981\"$year12>1981</option>
<option value=\"1980\"$year13>1980</option>
<option value=\"1979\"$year14>1979</option>
<option value=\"1978\"$year15>1978</option>
<option value=\"1977\"$year16>1977</option>
<option value=\"1976\"$year17>1976</option>
<option value=\"1975\"$year18>1975</option>
<option value=\"1974\"$year19>1974</option>
<option value=\"1973\"$year20>1973</option>
<option value=\"1972\"$year21>1972</option>
<option value=\"1971\"$year22>1971</option>
<option value=\"1970\"$year23>1970</option>
<option value=\"1969\"$year24>1969</option>
<option value=\"1968\"$year25>1968</option>
<option value=\"1967\"$year26>1967</option>
<option value=\"1966\"$year27>1966</option>
<option value=\"1965\"$year28>1965</option>
<option value=\"1964\"$year29>1964</option>
<option value=\"1963\"$year30>1963</option>
<option value=\"1962\"$year31>1962</option>
<option value=\"1961\"$year32>1961</option>
<option value=\"1960\"$year33>1960</option>
<option value=\"1959\"$year34>1959</option>
<option value=\"1958\"$year35>1958</option>
<option value=\"1957\"$year36>1957</option>
<option value=\"1956\"$year37>1956</option>
<option value=\"1955\"$year38>1955</option>
<option value=\"1954\"$year39>1954</option>
<option value=\"1953\"$year40>1953</option>
<option value=\"1952\"$year41>1952</option>
<option value=\"1951\"$year42>1951</option>
<option value=\"1950\"$year43>1950</option>
</select><br/>
CR
crazybrumi
Super moderator Principal · 1,064 posts
17 years ago
#10
as to why your inbox image wasnt showing was because the source was wroung u neeed to change this ./phpThumb/phpThumb.php? from the image string to ../phpThumb/phpThumb.php?
KI
NickGriffin wrote:
as to why your inbox image wasnt showing was because the source was wroung u neeed to change this ./phpThumb/phpThumb.php? from the image string to ../phpThumb/phpThumb.php?
i got the image working and i did this
$day=explode("-",$bdy[0]);$day=$day[2];
$month=explode("-",$bdy[0]);$month=$month[1];
$year=explode("-",$bdy[0]);$year=$year[0];
if($day=="01"){$day1=" selected="selected"";}else{$day1="";}
if($day=="02"){$day2=" selected="selected"";}else{$day2="";}
if($day=="03"){$day3=" selected="selected"";}else{$day3="";}
if($day=="04"){$day4=" selected="selected"";}else{$day4="";}
if($day=="05"){$day5=" selected="selected"";}else{$day5="";}
if($day=="06"){$day6=" selected="selected"";}else{$day6="";}
if($day=="07"){$day7=" selected="selected"";}else{$day7="";}
if($day=="08"){$day8=" selected="selected"";}else{$day8="";}
if($day=="09"){$day9=" selected="selected"";}else{$day9="";}
if($day=="10"){$day10=" selected="selected"";}else{$day10="";}
if($day=="11"){$day11=" selected="selected"";}else{$day11="";}
if($day=="12"){$day12=" selected="selected"";}else{$day12="";}
if($day=="13"){$day13=" selected="selected"";}else{$day13="";}
if($day=="14"){$day14=" selected="selected"";}else{$day14="";}
if($day=="15"){$day15=" selected="selected"";}else{$day15="";}
if($day=="16"){$day16=" selected="selected"";}else{$day16="";}
if($day=="17"){$day17=" selected="selected"";}else{$day17="";}
if($day=="18"){$day18=" selected="selected"";}else{$day18="";}
if($day=="19"){$day19=" selected="selected"";}else{$day19="";}
if($day=="20"){$day20=" selected="selected"";}else{$day20="";}
if($day=="21"){$day21=" selected="selected"";}else{$day21="";}
if($day=="22"){$day22=" selected="selected"";}else{$day22="";}
if($day=="23"){$day23=" selected="selected"";}else{$day23="";}
if($day=="24"){$day24=" selected="selected"";}else{$day24="";}
if($day=="25"){$day25=" selected="selected"";}else{$day25="";}
if($day=="26"){$day26=" selected="selected"";}else{$day26="";}
if($day=="27"){$day27=" selected="selected"";}else{$day27="";}
if($day=="28"){$day28=" selected="selected"";}else{$day28="";}
if($day=="29"){$day29=" selected="selected"";}else{$day29="";}
if($day=="30"){$day30=" selected="selected"";}else{$day30="";}
if($day=="31"){$day31=" selected="selected"";}else{$day31="";}
if($month=="01"){$month1=" selected="selected"";}else{$month1="";}
if($month=="02"){$month2=" selected="selected"";}else{$month2="";}
if($month=="03"){$month3=" selected="selected"";}else{$month3="";}
if($month=="04"){$month4=" selected="selected"";}else{$month4="";}
if($month=="05"){$month5=" selected="selected"";}else{$month5="";}
if($month=="06"){$month6=" selected="selected"";}else{$month6="";}
if($month=="07"){$month7=" selected="selected"";}else{$month7="";}
if($month=="08"){$month8=" selected="selected"";}else{$month8="";}
if($month=="09"){$month9=" selected="selected"";}else{$month9="";}
if($month=="10"){$month10=" selected="selected"";}else{$month10="";}
if($month=="11"){$month11=" selected="selected"";}else{$month11="";}
if($month=="12"){$month12=" selected="selected"";}else{$month12="";}
if($year=="1995"){$year2=" selected="selected"";}else{$year2="";}
if($year=="1994"){$year3=" selected="selected"";}else{$year3="";}
if($year=="1993"){$year4=" selected="selected"";}else{$year4="";}
if($year=="1992"){$year5=" selected="selected"";}else{$year5="";}
if($year=="1991"){$year6=" selected="selected"";}else{$year6="";}
if($year=="1990"){$year7=" selected="selected"";}else{$year7="";}
if($year=="1989"){$year8=" selected="selected"";}else{$year8="";}
if($year=="1988"){$year9=" selected="selected"";}else{$year9="";}
if($year=="1987"){$year10=" selected="selected"";}else{$year10="";}
if($year=="1986"){$year11=" selected="selected"";}else{$year11="";}
if($year=="1985"){$year12=" selected="selected"";}else{$year12="";}
if($year=="1984"){$year13=" selected="selected"";}else{$year13="";}
if($year=="1983"){$year14=" selected="selected"";}else{$year14="";}
if($year=="1982"){$year15=" selected="selected"";}else{$year15="";}
if($year=="1981"){$year16=" selected="selected"";}else{$year16="";}
if($year=="1980"){$year17=" selected="selected"";}else{$year17="";}
if($year=="1979"){$year18=" selected="selected"";}else{$year18="";}
if($year=="1978"){$year19=" selected="selected"";}else{$year19="";}
if($year=="1977"){$year20=" selected="selected"";}else{$year20="";}
if($year=="1976"){$year21=" selected="selected"";}else{$year21="";}
if($year=="1975"){$year22=" selected="selected"";}else{$year22="";}
if($year=="1974"){$year23=" selected="selected"";}else{$year23="";}
if($year=="1973"){$year24=" selected="selected"";}else{$year24="";}
if($year=="1972"){$year25=" selected="selected"";}else{$year25="";}
if($year=="1971"){$year26=" selected="selected"";}else{$year26="";}
if($year=="1970"){$year27=" selected="selected"";}else{$year27="";}
if($year=="1969"){$year28=" selected="selected"";}else{$year28="";}
if($year=="1968"){$year29=" selected="selected"";}else{$year29="";}
if($year=="1967"){$year30=" selected="selected"";}else{$year30="";}
if($year=="1966"){$year31=" selected="selected"";}else{$year31="";}
if($year=="1965"){$year32=" selected="selected"";}else{$year32="";}
if($year=="1964"){$year33=" selected="selected"";}else{$year33="";}
$main="
<form action=\"./login.php?update=1&username=$username&password=$password\" method=\"post\">
Profile Pic: <input name=\"propic\" maxlength=\"100\" value=\"$avat[0]\"/>
E-Mail: <input name="email" maxlength="100" value="$email[0]"/>
Date Of Birth: <select name="day">
<option value=\"01\"$day1>1</option>
<option value=\"02\"$day2>2</option>
<option value=\"03\"$day3>3</option>
<option value=\"04\"$day4>4</option>
<option value=\"05\"$day5>5</option>
<option value=\"06\"$day6>6</option>
<option value=\"07\"$day7>7</option>
<option value=\"08\"$day8>8</option>
<option value=\"09\"$day9>9</option>
<option value=\"10\"$day10>10</option>
<option value=\"11\"$day11>11</option>
<option value=\"12\"$day12>12</option>
<option value=\"13\"$day13>13</option>
<option value=\"14\"$day14>14</option>
<option value=\"15\"$day15>15</option>
<option value=\"16\"$day16>16</option>
<option value=\"17\"$day17>17</option>
<option value=\"18\"$day18>18</option>
<option value=\"19\"$day19>19</option>
<option value=\"20\"$day20>20</option>
<option value=\"21\"$day21>21</option>
<option value=\"22\"$day22>22</option>
<option value=\"23\"$day23>23</option>
<option value=\"24\"$day24>24</option>
<option value=\"25\"$day25>25</option>
<option value=\"26\"$day26>26</option>
<option value=\"27\"$day27>27</option>
<option value=\"28\"$day28>28</option>
<option value=\"29\"$day29>29</option>
<option value=\"30\"$day30>30</option>
<option value=\"31\"$day31>31</option>
</select>
<select name=\"month\">
<option value=\"01\"$month1>Jan</option>
<option value=\"02\"$month2>Feb</option>
<option value=\"03\"$month3>Mar</option>
<option value=\"04\"$month4>Apr</option>
<option value=\"05\"$month5>May</option>
<option value=\"06\"$month6>Jun</option>
<option value=\"07\"$month7>Jul</option>
<option value=\"08\"$month8>Aug</option>
<option value=\"09\"$month9>Sep</option>
<option value=\"10\"$month10>Oct</option>
<option value=\"11\"$month11>Nov</option>
<option value=\"12\"$month12>Dec</option>
</select>
<select name=\"year\">
<option value=\"1995\"$year2>1995</option>
<option value=\"1994\"$year3>1994</option>
<option value=\"1993\"$year4>1993</option>
<option value=\"1992\"$year5>1992</option>
<option value=\"1991\"$year6>1991</option>
<option value=\"1990\"$year7>1990</option>
<option value=\"1989\"$year8>1989</option>
<option value=\"1988\"$year9>1988</option>
<option value=\"1987\"$year10>1987</option>
<option value=\"1986\"$year11>1986</option>
<option value=\"1985\"$year12>1985</option>
<option value=\"1984\"$year13>1984</option>
<option value=\"1983\"$year14>1983</option>
<option value=\"1982\"$year15>1982</option>
<option value=\"1981\"$year16>1981</option>
<option value=\"1980\"$year17>1980</option>
<option value=\"1979\"$year18>1979</option>
<option value=\"1978\"$year19>1978</option>
<option value=\"1977\"$year20>1977</option>
<option value=\"1976\"$year21>1976</option>
<option value=\"1975\"$year22>1975</option>
<option value=\"1974\"$year23>1974</option>
<option value=\"1973\"$year24>1973</option>
<option value=\"1972\"$year25>1972</option>
<option value=\"1971\"$year26>1971</option>
<option value=\"1970\"$year27>1970</option>
<option value=\"1969\"$year28>1969</option>
<option value=\"1968\"$year29>1968</option>
<option value=\"1967\"$year30>1967</option>
<option value=\"1966\"$year31>1966</option>
<option value=\"1965\"$year32>1965</option>
<option value=\"1964\"$year33>1964</option>
i changed on register.php the age to 13 but still i tried to join using a year 1995 and it says must be 15+ to join this site!
CR
crazybrumi
Super moderator Principal · 1,064 posts
17 years ago
#12
oh i thort u didnt nw how to change the form..
wel if u go to login.php and look at else if(getage($year."-".$month."-".$day)<18)
just change the 18 to what ever corresponds with your form
PA
PA
KI
i didnt adnan just figured it out when u said about what you put i thought ide look n see first.
do you know what this error im getting is with forums? i tried looking where it says the error is but cant find <img src=
except the male n female, onl, ofl, home n flag images that was already on script but since i added some stuff to other parts of the scripts it comes up with:
Not Found
The requested URL /forums/viewtopic.php<img src= was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
CR
crazybrumi
Super moderator Principal · 1,064 posts
17 years ago
#16
look at the link to take yu to the page
KI
i went in to forums viewtopic.php already but everything looks fine so dont know why im getting this error, when i get a inbox saying someone replied to my topic it comes up with something like Your Topic thread=13&go=last&sid=d7547d149cf1f45f9aaad6a369c8aef9">A2Z Girls Names has been Replied to by persons name click the link n get 404 error
BR
brand
Senior · 391 posts
17 years ago
#18
Kirsty wrote:
i went in to forums viewtopic.php already but everything looks fine so dont know why im getting this error, when i get a inbox saying someone replied to my topic it comes up with something like Your Topic thread=13&go=last&sid=d7547d149cf1f45f9aaad6a369c8aef9">A2Z Girls Names has been Replied to by persons name click the link n get 404 error
hi there this is due to a smilies is being used with some thing that is used with the link all u need to do is delete the smilies to sort this out
CR
crazybrumi
Super moderator Principal · 1,064 posts
17 years ago
#19
Kirsty wrote:
i went in to forums viewtopic.php already but everything looks fine so dont know why im getting this error, when i get a inbox saying someone replied to my topic it comes up with something like Your Topic thread=13&go=last&sid=d7547d149cf1f45f9aaad6a369c8aef9">A2Z Girls Names has been Replied to by persons name click the link n get 404 error
ahh yes this is a error in the main script aswell loadza sites have this problem the way to fix it is if you go into the core folder and then into functions file look at the getbbcode function and in there you should find
$text=preg_replace("/\[topic\=(.*?)\](.*?)\[\/topic\]/is","<a href=\"../forums/viewtopic.php?thread=$1&go=last&sid=$sid\">$2</a>",$text);
$text=preg_replace("/\[club\=(.*?)\](.*?)\[\/club\]/is","<a href=\"../clubs/view.php?id=$1&sid=$sid\">$2</a>",$text);
$text=preg_replace("/\[blog\=(.*?)\](.*?)\[\/blog\]/is","<a href=\"../wapsites/blogs.php?read=1&id=$1&sid=$sid\">$2</a>",$text);
look at the file bellow replace the top with contecnts of this file i cudnt enter the code here as it would change it back to &
http://webnwaphost.com/downloads/bbcode.txt
http://webnwaphost.com/downloads/bbcode.rtf
KI
NickGriffin wrote:
ahh yes this is a error in the main script aswell loadza sites have this problem the way to fix it is if you go into the core folder and then into functions file look at the getbbcode function and in there you should find
$text=preg_replace("/\[topic\=(.*?)\](.*?)\[\/topic\]/is","<a href=\"../forums/viewtopic.php?thread=$1&go=last&sid=$sid\">$2</a>",$text);
$text=preg_replace("/\[club\=(.*?)\](.*?)\[\/club\]/is","<a href=\"../clubs/view.php?id=$1&sid=$sid\">$2</a>",$text);
$text=preg_replace("/\[blog\=(.*?)\](.*?)\[\/blog\]/is","<a href=\"../wapsites/blogs.php?read=1&id=$1&sid=$sid\">$2</a>",$text);
look at the file bellow replace the top with contecnts of this file i cudnt enter the code here as it would change it back to &
http://webnwaphost.com/downloads/bbcode.txt
http://webnwaphost.com/downloads/bbcode.rtf
ok adnan so instead of the code in functions put the ones in the link you put?