Adding a Description at top of page

Hi,

(vers: 6.1.6)

I want to add some TEXT/DESCRIPTION at the top of the "Add Events" page ( just above "Title:").

How can I do this?

Thanks in advance.

Blaine.

Thanks in Advance, Blaine
Quote · 8 Mar 2010

inc/classes/BxDolEvents.php

almost at the bottom of the page find this code,

$sRetHtml = <<<EOF
{$sJSCode}
<form id="newEventForm" action="{$sEventURL}" method="post" enctype="multipart/form-data">
<table class="addEventForm">
<tr class="vc">
<td class="form_label">{$sTitleC}:</td>
<td class="form_value">
<div class="edit_error" style="display:{$sTstyle}">
{$sTmsg}
</div>
<input class="form_input" type="text" name="event_title" id="event_title_id" value="{$sEventTitle}" />
</td>
</tr>

You can add code 2 places, I have added both...added code is bold


$sRetHtml = <<<EOF

<div class="disignBoxFirst">
<!--<div class="boxFirstHeader">Your header text</div>-->
<div class="boxContent">
Your text here
</div>
</div>

{$sJSCode}
<form id="newEventForm" action="{$sEventURL}" method="post" enctype="multipart/form-data">
<table class="addEventForm">

<tr><td>
Your text here
</td></tr>


<tr class="vc">
<td class="form_label">{$sTitleC}:</td>
<td class="form_value">
<div class="edit_error" style="display:{$sTstyle}">
{$sTmsg}
</div>
<input class="form_input" type="text" name="event_title" id="event_title_id" value="{$sEventTitle}" />
</td>
</tr>

Quote · 9 Mar 2010

okweb,

You're amazing! Thanks again.

Blaine.

Thanks in Advance, Blaine
Quote · 10 Mar 2010

Thanks again okweb,

I have another idea, what if I wanted to change the "Your text here" into a Language String so in the future I can just change it in the language string and NOT MESS with the BxDolEvents.php file, what would I change "Your text here" as indicated in your instructions above?....

I'm guessing something like:  {$EventsPageDescription} with the Language Key _EventsPageDescription

Thanks in advance,

Blaine.

Thanks in Advance, Blaine
Quote · 17 Mar 2010

By looking through the file BxDolEvents.php and with a little trial & error, I found that if I insert (for example) {$sTagsC} in place of "Your text here" from your instructions it will pull "Tags" from the Language String....

so, I created the Language String:

Add your Local GLBTQ Pride Event/Celebration to our world wide list to help keep local citizens informed and educate those who live in small towns wishing to travel to a larger city to participate.

... with the Key: _EventsPageDescription

... and Category: Page Description

But when I insert {$EventsPageDescription} in place of "Your text here" is DOES NOT pull the language string.... what am I doing incorrectly.

Thanks in advance,

Blaine.

Thanks in Advance, Blaine
Quote · 17 Mar 2010

I GOT IT!!!!!!!!!!!!

In file /inc/classes/BxDolEvents.php

search for --> // collect information about current member

below this....

add:

$EventsPageDescription = _t('_EventsPageDescription');

then insert:

{$EventsPageDescription} in place of "Your text here" in your instructions above!

Now anytime I want to change the description at the top of the page (and a Language Translation) I can do it in the Language Strings!

Thanks for helping me learn!

Blaine.

Thanks in Advance, Blaine
Quote · 17 Mar 2010

Hi,

(vers: 6.1.6)

Now I would like to do the same with the JOIN PAGE (and add a description at the top of the page just above the first set of join questions.

Which file do I need to look at and where would I insert the Language String?


(((( ATTENTION BOONEX: I'm not using version 7.0 yet (waiting for the affiliate mod)... but it would be great if boonex would add a Page Description/Message Block at the top of all major pages that could be changed in the Language Strings OR deleted if not wanted/needed. ))))

Thanks in advance.

Blaine.

Thanks in Advance, Blaine
Quote · 20 Mar 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.