The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Tutorials

Tutorials Tutorials and articles on using vB Geek stuff.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Comment
 
Tutorial Tools Display Modes
Ad ing some Sense
Ad ing some Sense
Published by The Geek
09-17-2005
Default Introduction

A user asked the other day about using the GARS mod system to put Google Adsense after the article/tutorial/review/whatever. They figured it out quite quickly, however I saw this as a great opportunity to show others how to do it so that they can start to see how easy it is to write custom mods.

The module system is kind of similar to vB3.5's hook system in the fact that there are key sections that you can 'hook' into to provide extra functionality. Most of these key areas are for visual rendering, however there are plans to include additional 'hooks' in the editing and creating sections to allow users to record and edit custom fields without having to modify GARS at all!

There are currently 6 'hooks' where modules can produce output in an article/review/tutorial/whatever (so I don't have to keep typing that out - I'm going to call it a GAR from now on!).

Those locations are:
  1. Above the GAR
  2. Inside the header of the GAR
  3. Between the header and content of the GAR
  4. To the left of the GAR content (left column)
  5. To the right of the GAR content (right column)
  6. Below the GAR content.
Tutorial for
GARS

Contents

Tutorial Tools
Show Printable Version  Email this Page 

<< <    Next Page: Making the Google template (Page 1 of 5)    >  >>
  #1  
By greg watson on 09-18-2005, 07:32 PM
Default

So is there a way to put this "inline" in the GAR content? Ideally located "Left Inline" or "Right Inline" ...

Greg
Reply With Quote
  #2  
By The Geek on 09-18-2005, 08:27 PM
Default

You could put it in a column, either the left or right. Is that what you mean?
Reply With Quote
  #3  
By greg watson on 09-19-2005, 11:44 PM
Default

Quote:
Originally Posted by The Geek
You could put it in a column, either the left or right. Is that what you mean?
No ... inline in the GAR content block ...

Something like this where x is content in the GAR content block and y is the inline block within the GAR content block ...

xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxx yyyyyyy
xxxxxxxxxxx yyyyyyy
xxxxxxxxxxx yyyyyyy
xxxxxxxxxxx yyyyyyy
xxxxxxxxxxx yyyyyyy
xxxxxxxxxxx yyyyyyy
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx

Greg
Reply With Quote
  #4  
By Loco on 03-11-2006, 07:33 AM
Default

could u just add the FLOAT LEFT and FLOAT RIGHT
to your bbcode described in this post at vb.org
http://www.vbulletin.org/forum/showthread.php?t=103257 ?
Reply With Quote
  #5  
By greg watson on 03-11-2006, 02:49 PM
Default

Quote:
Originally Posted by LoCo.M
could u just add the FLOAT LEFT and FLOAT RIGHT
to your bbcode described in this post at vb.org
http://www.vbulletin.org/forum/showthread.php?t=103257 ?
That is awfully close ... using this I can get this:

yyyyyyxxxxxxxxxxxxx
yyyyyyxxxxxxxxxxxxx
yyyyyyxxxxxxxxxxxxx
yyyyyyxxxxxxxxxxxxx
yyyyyyxxxxxxxxxxxxx
yyyyyyxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx

I am sure you could also float this to the right ...

I think this is better than what we currently have ... readers are trained to ignore ads in a left hand column without other content ... so the current module structure just isn't the best long term solution for ads.

Does anyone know how to force this block down 5+ lines?

Greg
Reply With Quote
  #6  
By pcoskat on 03-27-2006, 11:50 AM
Default

Are there any screen shots of the 'placement' examples in the tutorial?
Reply With Quote
  #7  
By Loco on 03-28-2006, 08:22 AM
Default

Quote:
Originally Posted by greg watson
Does anyone know how to force this block down 5+ lines?

Greg
type 5 lines before adding the bbcode ?
Reply With Quote
  #8  
By MissKalunji on 07-19-2006, 09:16 PM
Default

does anyone knows how to make that work with 2.0?
Reply With Quote
  #9  
By The Geek on 07-19-2006, 09:28 PM
Default

I need to make some code base changes. Most likely a 2.0 version will be out next week.

HTHs
Reply With Quote
Comment

Tutorial Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:43 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

Tutorial powered by GARS 2.1.9 ©2005-2006