_TOGGLE

Donations

Donate with PayPal!
Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
Unbekannt $ 10.00
macavity $ 115.00
RedGerry £ 50.00
Unbekannt $ 10.00
minor $ 20.00

Recommended ISP

Undertitle?

For everything else related to Pro_News - tips, tricks, your new ways to use and extend it. A place to exchange ideas and explore future possibilities.
Neue Antwort erstellenNeue Antwort erstellen Druckbare Version

Undertitle?

Posten Verfasst am: Fri Feb 22, 2008 4:53 pm

Hi layingback,

Is it possible to get an under title to this superb modul?

Like this:



Thanks!

Regards
Iscariah



Iscariah please enter your server specs in your user profile! Crying or Very sad

Iscariah
Sponsor
Sponsor
 
Beiträge: 10
Dabei seit: Feb 21, 2007

Re: Undertitle?

Posten Verfasst am: Fri Feb 22, 2008 6:46 pm

it's really very good addition , i hope it would be possible to add it soon ..


_________________

A little knowledge is a dangerous thing!




hadi00 please enter your server specs in your user profile! Crying or Very sad

hadi00
Translator
Translator
 
Beiträge: 35
Dabei seit: Apr 24, 2007
Wohnort: Syria, Lattakia

Re: Undertitle?

Posten Verfasst am: Fri Feb 22, 2008 6:54 pm

Sure, but why not attempt it yourself? Then you can get the update (much) sooner. I've spent way too much time recently doing Pro_News 2.0, and then 2.1, on top of each other - to keep up with Nano's release of 9.2 Wink

If you keep track of the changes (or just attach the changed files to a post here, and I'll diff them) then I'll commit to including in next release, so you don't have to worry about updating future versions.

This would be a good project to learn on. (For yourself or anyone else reading this.)

If you've not got yourself a decent editor, get at least Notepad (assuming you're on Windows), or I would recommend Notepad++ and also get its Function List plugin, as this will show you where each function starts. Notepad++ also lets you open all the files that you need in 1 re-usable session, with tabs for each, much faster.

Essentially you are going to be looking for everything to do with title, and duplicate - or add - stuff for title2. That simple, but it'll be in lots of places.

Look in functions.php (for user side) and admin_functions.php (for admin side) for each reference to or including 'title' (watching out for a few irrelevant references to Section, Category, etc. titles Wink ) and either add an identical line underneath with 'title2' in it, or in case of SQL calls and associated large arrays being set up (typically called list, edit or row) add a new entry immediately after and mimicking title but calling on title2. In both programs and in the templates look for names containing _TITLE and add equivalent entries for _TITLE2. Then you only have to add the field (to the end of) pronews_articles and test. Oh, and you'll need a new entry in the language file for the actual field name - I would suggest SubTitle rather than UnderTitle as the latter may give problems to translators using a dictionary.

Let me know how it goes, or if you need more guidance.



layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback
Site Admin
Site Admin
 
Beiträge: 1229
Dabei seit: Mar 18, 2006
Link  QR  Share this Druckbare Version  facebook   myspace   twitthis  
Show more ...
Beiträge der letzten Zeit anzeigen:   
Neue Antwort erstellenNeue Antwort erstellen Seite 1 von 1

Pro_News Community

Gehe zu:  



Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst keine Dateien anhängen.
Du kannst keine Dateien herunterladen.

Alle Zeitangaben sind in GMT






layingback Non-Human Terms of Use