The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hi
I recently found a company offering a free sms service that I integrated into my Vbulletin board. www.dogsonacid.com The company that offers the free service is www.fonetastic.com , I also found a sign up service for there partners page at http://dogsonacid.fonetastic.net/ once i had signed up. Go there first to sign up for an account. This is a skinable SMS service so it looks just like part of my site. It works in the following manner. 1) Go to postbit templates 2) Expand this and edit the template called postbit There are 2 place that you can put this that looks quite nice. The first is text 1) Find this piece of code <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> and put this in front of it <a href="http://dogsonacid.fonetastic.net/sms/v1/?msg=$post[message]">Sms This Message | </a> 2) This method is a graphic version. before the code <a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="images/edit.gif" border="0" alt="Edit/Delete Message"></a> place this piece of code <a href="http://dogsonacid.fonetastic.net/sms/v1/?msg=$post[message]"><img src="images/sms.gif" border="0" alt="Sms This Message"></a> If you do this method you will need to upload it to the imagesfolder a file called sms.gif. Note the http://dogsonacid.fonetastic.net/ url im posting is the once i got for signing up, you will need to replace this with code of your own. Thats all you need to do and you can offer FREE SMS to your customers. Oh I also added it to the header as a button. Finally they seem like quite an approachable company as i was having problems with the <br /> in the messages and they modified the code there end to deal with it. So check it out and let me know what you think. |
#2
|
|||
|
|||
Hi
Ok Quick update for people who have smiles / htm etc on the messages. You need to open showthread.php and find the code (this is 2.2) $counter=0; while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { if ($postdone[$post[postid]]) { $counter--; continue; } else { $postdone[$post[postid]]=1; } below 2.2 find this code $post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]); //highlight words for search engine if (isset($highlight)) { if ((isset($postid) and $postid==$post[postid]) or !isset($postid)) { reset($replacewords); while (list($key,$val)=each($replacewords)) { $post['message']=preg_replace("/(^| |\n|\r|\t|\]|>|\")(".$val.")(([\.,]+[ $\n\r\t])|$|\"|<|\[| |\n|\r|\t)/si", "\\1<highlight>\\2</highlight>\\3", $post['message']); } } } and directly below put //GET THE MESSAGE $chrismessage = $post[pagetext]; //format out the tags $chrismessage = strip_tags($chrismessage); //replace vb code $chrismessage = eregi_replace(".*):", "", $chrismessage); //remove quote etc $chrismessage = eregi_replace("\[(.*)\]", "", $chrismessage); //remove dead space $chrismessage = eregi_replace("[[:space:]]+", " ", $chrismessage); //encode it $chrismessage = urlencode($chrismessage); //save it back $post[chrismessage] = $chrismessage; Oh yeah you need to update the template to say post[chrismessage] instead of post[message] thatll do it. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|