php forum
php mysql forum
php mysql smarty
 
Topic Options
#315990 - 10/11/07 06:53 PM Need a Mod ... Custom Island in PM templateHi Guys
24hourcampfire Offline
Lurker

Registered: 12/23/02
Posts: 5
Hi Guys:

I want to put an island between the first and second post in a PM thread. I get LOTS of PM traffic, and I want to put ssome advertising in there.

I know just enough coding to be dangerous.

Whatcha all think? I get the sense it's either a really simple template mod, or a highly complex re-write job.

Any helpers?

rb


Top
#315991 - 10/11/07 07:03 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: 24hourcampfire]
sirdude Moderator Offline
Enthusiast

Registered: 11/08/03
Posts: 442
Loc: SoCal
i'd call it a template + code (small/medium) mod.

doable
_________________________

Top
#315992 - 10/11/07 08:06 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: sirdude]
24hourcampfire Offline
Lurker

Registered: 12/23/02
Posts: 5
Help please!

I want an ad slot in my PM template after first post. Any takers?

rb

Top
#315993 - 10/11/07 11:01 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: 24hourcampfire]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
like i said in pm at central, it's doable but would take some work to do
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316008 - 10/15/07 12:03 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: Gizmo]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Okay, that took only 5 minutes smile

in /scripts/viewmessage.inc.php

find:
Code:
	$user['USER_TOTAL_PM'] = $total_unread;


Add below:
Code:
	$island_insert = get_portal_box("portal_box_3.php");


You can replace that number 3 there with any of the other custom boxes. It's hardcoded for simplicity of the hack. No sense in make more fuzz of it then the 2 line hack it is laugh

Just under it find
Code:
		"online_status" => $online_status,


Add below:
Code:
		"island_insert" => & $island_insert,


And yes, that's all there is to it.

It's a really simple hack, you just have to provide the $island_insert variable to the smarty template, and it will be displayed automaticly below post #1.
_________________________

Top
#316011 - 10/15/07 04:38 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Now we need a way to make these ads appear after say the 5th post in a thread or PM wink
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#316012 - 10/15/07 05:21 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: Ian_W]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
That would be a major $10,000 dollar paid hack since you have to edit 2 files for that smile post_side.tpl and post_top.tpl and change the magic line in both smile

That's well beyond the scope of this topic wink


Edited by blaaskaak (10/15/07 05:22 PM)
_________________________

Top
#316013 - 10/15/07 06:25 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
24hourcampfire Offline
Lurker

Registered: 12/23/02
Posts: 5
Hmm.

First off, HUGE thanks.

I'm running 7.1 and did the first add, but could not find in my viewmessage.inc.php file:

"online_status" => $online_status,

I tried putting the following in the smarty code, but no workee.

"island_insert" => & $island_insert,

Still no luck, Chuck.

Top
#316014 - 10/16/07 02:03 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: 24hourcampfire]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Hm, I don't have a 7.1 copy running, I run the latest version (7.2.2 at this time).

Basicly all there is to it is adding that
"island_insert" => & $island_insert, in the $smarty_data = array(

But ehr, 7.1 could be your show stopper anyhow for this simply hack. If I remember correct, the joined post_side.tpl and post_top.tpl which is used to display posts in both flat, threaded and private topic mode was introduced in 7.2

I would recommend an upgrade to 7.2.2.
_________________________

Top
#316015 - 10/16/07 02:51 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Originally Posted By: blaaskaak
That would be a major $10,000 dollar paid hack since you have to edit 2 files for that smile post_side.tpl and post_top.tpl and change the magic line in both smile

That's well beyond the scope of this topic wink


$10,000 on it's way wink
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#316016 - 10/16/07 03:16 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: Ian_W]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Originally Posted By: Ian_W
$10,000 on it's way wink


/templates/default/post_side.tpl

Code:
{if $smarty.section.post.iteration == 1}


replace with

Code:
{if $smarty.section.post.iteration == say the 5th post}


The post_top.tpl hack I will post after receiving the funds smile
_________________________

Top
#316017 - 10/16/07 10:07 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
sirdude Moderator Offline
Enthusiast

Registered: 11/08/03
Posts: 442
Loc: SoCal
i'll only charge $9999
_________________________

Top
#316018 - 10/16/07 10:57 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Originally Posted By: sirdude
i'll only charge $9999


yeah right, ex taxes I'm sure. Don't fall for that old trick Ian laugh
_________________________

Top
#316019 - 10/16/07 11:08 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
sirdude Moderator Offline
Enthusiast

Registered: 11/08/03
Posts: 442
Loc: SoCal
yah, but i'll also throw in a slightly used version of Halo II laugh
_________________________

Top
#316020 - 10/16/07 01:33 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
I'll add a 3 star New Mario Bros Nintendo DS savegame, with everything unlocked. And yarp, played those 3 stars myself.
_________________________

Top
#316021 - 10/16/07 06:49 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
always wondered how many stars you could get... lol
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316023 - 10/17/07 01:39 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: Gizmo]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Originally Posted By: Gizmo
always wondered how many stars you could get... lol


Final Castle, alle exits, all coins... That last one took me ages laugh
_________________________

Top
#316024 - 10/17/07 02:05 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
i guess i'm about 80% there, I have all castles done, probably all but 4 alt exits (2 ghost houses), and probably 80% of coins...

i've been really engrossed with Legend of Zelda, Phantom Hourglass; I'm a little over half way through, with the majority of minigames completed.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top


Moderator:  sirdude 
Who's Online
0 registered (), 23 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks